<include file="Public/siteTopbar" />
<script src="__STATIC__/js/jquery-1.10.2.min.js"></script>
<script src="__STATIC__/js/slider.js"></script>
<include file="Public/header" />


<div class="container usercenter" >
    <include file="User/menu" />
    
    <div class="col-sm-9">
        <div class="my-account">
            <div class="page-title">
                <h1>Account Dashboard</h1>
            </div>
            
            <div class="myhome-welcome pa-to-20">
                <div class="ov-hi ma-le-158">
                    <div class="welcome-msg">
    <p class="hello"><strong>Hello, {$user.nickname} {$user.lastname}</strong></p>
    
    <p class="hello"><strong>level：{$level[$user['level']][level_name]}</strong></p>
    <p>From your My Account Dashboard you have the ability to view a snapshot of your recent account activity and update your account information. Select a link below to view or edit information.</p>
</div>



                    <div class="w-info">
                        
                        <span style="display:none;">{$Think.lang.grade}：{$level[$user['level']][level_name]}</span>
                       
                        
                        <!--<span><a class="link-non-validated" href="">未实名认证</a></span>-->
                        <span>Coupon:&nbsp;<em><a  href="{:U('Home/User/coupon')}">{$user.coupon_count}</a></em>&nbsp;</span>
                    </div>
                    
                </div>
                <div class="clickshop" style="display:none;">
                
                    <p style="margin-top:20px"><a href="/"><span>{$Think.lang.start_shopping}</span></a></p>
                </div>
            </div>
            
        </div>	</div>


</div>


<script src="__PUBLIC__/js/global.js"></script>
<script src="__PUBLIC__/js/pc_common.js"></script>

<script> 
    function delimg(file,t){
        $.get(
                "/index.php?m=Admin&c=Uploadify&a=delupload",{action:"del", filename:file},function(){}
        );
        $('#head_pic').val('');
        $('#preview').attr('src','');
        $(t).remove();
    }
    function add_img(str){
        var head_pic = $('#head_pic').val();
        $('#head_pic').val(str);
        $('#preview').attr('src',str);

//        if(!$('#delimg')){
//            $('#img_box').append('<button id="delimg" type="button" onclick="delimg('+"'"+str+"'"+',this)">删除图片</button>');
//        }else{
//            $('#delimg').attr('onclick','delimg('+"'"+str+"'"+',this)');
//        }
        if(!head_pic){
            $('#img_box').append('<button id="delimg" type="button" onclick="delimg('+"'"+str+"'"+',this)">删除图片</button>');
        }else{
            $('#delimg').attr('onclick','delimg('+"'"+str+"'"+',this)');
        }

    }
</script>

<script type="text/javascript">
    $(document).ready(function(){
        var icon_wh=$(".icon_wh");
        icon_wh.each(function(){
            var thisObj=$(this);
            thisObj.bind("mouseout",function(){
                $(this).next().css("display","none");
            });
            thisObj.bind("mouseover",function(){
                $(this).next().css("display","block");
            });
        });
    });
</script>
<!--------footer-开始-------------->
<include file="Public/footer" />
<!--------footer-结束-------------->
</body>
<script>
    /*$(function () {
     $("#h-s").click(function () {
     $('.ec-ta-x').css('left','124px');
     $('.ec-ta-x').css('width','110px');
     $(this).addClass("cullent");
     $('#q-s').removeClass("cullent");
     });
     });
     */
</script>

<script>
    $(function () {
        $("#h-s").mouseover(function () {
            $('.ec-ta-x').css('left','124px');
            $('.ec-ta-x').css('width','110px');
            $(this).addClass("cullent");
        });
        $("#h-s").mouseout(function () {
            $('.ec-ta-x').css('left','0px');
            $('.ec-ta-x').css('width','124px');
            $(this).removeClass("cullent");
        });
    });
    $(function () {
        $("#q-s").mouseover(function () {
            $('.ec-ta-x').css('left','0px');
            $(this).addClass("cullent");
        });
        $("#q-s").mouseout(function () {
            $('.ec-ta-x').css('left','0px');
        });
    });

</script>
</html>